package com.app.scale.basis;

import android.os.Environment;

public class Constants {


	public final static int GOODSDATARESULT = 77;
	public final static int SCANDATASULT = 78;
	public final static int QCORDRESULT = 72;
	public final static int IMGPICK = 71;
	///1工单、2领料、3退料、4入库
	public static final String GD = "1",LL = "2",TL= "3",RK = "4";


	//数据透传  服务的 UUID 为 0xFF00 = 0000ff00
	public static String DATA_TRANSMISSION= "0000ffe0-0000-1000-8000-00805f9b34fb";
	//蓝牙的特征值，发送
	public final static String SERVICE_EIGENVALUE_SEND = "0000ffe1-0000-1000-8000-00805f9b34fb";
	//蓝牙的特征值，接收
	public final static String SERVICE_EIGENVALUE_READ = "0000ffe1-0000-1000-8000-00805f9b34fb";





	/**读码结果发送的广播action*/
	public final static String ACTION_UHF_RESULT_SEND = "nlscan.intent.action.uhf.ACTION_RESULT";
	/**读码结果发送的广播Extra*/
	public final static String EXTRA_TAG_INFO = "tag_info";


//	 public static final boolean DEBUG = false;
	public static final boolean DEBUG = true;

	// 正式服务器
	public static final String URL_SERVICE ="";



	public static String URL_API = "/";
	public static String URL_API_LOGIN = URL_API;

	public static String URL_API_IMG = URL_API+"tmins/image?p=";
	public static String URL_API_IMG_COMMON = URL_API+"common/image?p=";


	//用户管理-登录
	public static String URL_LOGIN = URL_API_LOGIN+"users/login";

	//用户管理-根据cardNo获取数据信息
	public static String URL_SELECT_BY_CAR_NO = URL_API_LOGIN+"users/selectByCardNo";
	//用户管理-根据aid查询所有的用户信息
	public static String URL_SELECT_ALL_USER = URL_API_LOGIN+"users/selectAllUser";





	public static final String SM="寿眉";
	public static final String MD="牡丹";
	public static final String YZ="银针";

	//根据aid,fsg(品种)查询所有茶青资料        品种（fsg）：银针、牡丹、寿眉、贡眉
	public static String URL_GOODF_SELECT_ALL = URL_API_LOGIN+"Goodf/selectAll";


	//根据cardno查询公司信息
	public static String URL_COMPAY_SELECT_BY_CARD_NO = URL_API_LOGIN+"company/selectByCardNo";
	//根据aid获取供应商信息
	public static String URL_COMPAY_SELECT_ALL_PURCHASE = URL_API_LOGIN+"company/selectAllPurchase";
	//分页根据aid,cfsign查询所有客户、供应商编号
	public static String URL_COMPAY_RETURN_NUM_BY_CNO= URL_API_LOGIN+"company/returnNumByCno";
	//分页根据aid,cfsign查询所有客户、供应商编号
	public static String URL_COMPAY_INSERT= URL_API_LOGIN+"company/insert";
	//修改客户、供应商资料
	public static String URL_COMPAY_UPDATE_BY_ID= URL_API_LOGIN+"company/updateById";






	//添加收茶
	public static String URL_LEAF_INSERT= URL_API_LOGIN+"leaf/insert";
	//查询所有收茶记录
	public static String URL_LEAF_SELECT_PAGE= URL_API_LOGIN+"leaf/selectPage";
	//根据TID,AID查看子表
	public static String URL_LEAF_GET_LEAF_BY_ID= URL_API_LOGIN+"leaf/getleafsByid";

	//根据TID,AID查看子表
	public static String URL_LEAF_UPDATE_BY_ID= URL_API_LOGIN+"leafs/updateById";








	//更新  根据AID查询App信息
	public static String URL_UPDATE_XF = URL_API+"app/getFileVersion";




	//  上传茶叶图片
	public static String URL_UPDATE_TEA_IMG = URL_API+"leaf/leafImgsUpload";

























    //登录-登录
    public static String URL_USER_REFRESH_TOKEN = URL_API+"user/open/refreshToken";
	//登录-短信验证码
	public static String URL_LOGIN_MSGCODE = URL_API+"user/open/api/v1/captcha/add";
	//用户-修改密码
	public static String URL_USER_MODIFY_PWD= URL_API+"user/api/v1/user/changePwd";
	//用户-更新密码-找回密码
	public static String URL_USER_FIND_PWD = URL_API+"user/api/v1/user/updatePassWord";


	//首页导航-获取用户信息以及模块权限列表
	public static String URL_USER_REFRESH_LOGININFO = URL_API+"user/api/v1/sysModule/getUserInfoAndAuthority";

	//国家地区
	public static String URL_COUNTRY= URL_API+"System/country.json";


	//视频-获取视频点树结构
	public static String URL_VIDEO_GET_CATALOG=  URL_API+"ff-video/isc/getDeviceTree";
	//视频-获取视频播放流地址
	public static String URL_VIDEO_GET_PLAY_URL =  URL_API+"ff-video/isc/findPlayUrl";

	public static String FILE_PREFIX = "file://";
	public static String DRAWABLE_PREFIX = "drawable://";
	public static int PAGE_SIZE = 10;

	public static final String TEL = "";

	public static final long TIME_DELAY = 500;


	public static final int COLLECT_IMG_MAX = 6;

	/**
	 * 程序目录
	 */
	public static final String DIR = Environment.getExternalStorageDirectory()
			+ "/TeaScale/";
	public static final String DIR_IN = BasisApp.getInstance().getFilesDir().getPath()
			+ "/";

	public static final String DIR_DOWNLOAD = DIR + "download/";
	public static final String DIR_TEMP = DIR + "temp/";
	public static final String DIR_LOG = DIR + "log/";
	public static final String DIR_FILE = DIR + "file_/";
	public static final String DIR_FILECACHE = DIR + "file/";
	public static final String DIR_CAMERA = DIR + "camera/";

	public static final int MAX_ZOOM_VISIABLE_LEVEL = 13;

}
